﻿<%@ Control Language="C#" Inherits="ZenKee.Modules.ListPages.ViewListPages"
    AutoEventWireup="true" CodeBehind="ViewListPages.ascx.cs" %>
<div class="list_boxTop">
    <asp:Label ID="labelTitle" runat="server" Text=""></asp:Label></div>
<div class="list_boxBody">
<asp:DataList ID="lstContent" DataKeyField="ItemID" runat="server" CellPadding="4" RepeatDirection="Horizontal"
    OnItemDataBound="lstContent_ItemDataBound">
    <ItemTemplate>
        <table cellpadding="4" width="100%">
            <tr>
                <td valign="top" width="100%" align="left">
                    <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# EditUrl("ItemID",DataBinder.Eval(Container.DataItem,"ItemID").ToString()) %>'
                        Visible="<%# IsEditable %>" runat="server">
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/edit.gif" AlternateText="Edit"
                            Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:HyperLink>
                    <asp:Label ID="lblContent" runat="server" CssClass="Normal" />
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
</div>
<div class="listPager"></div>
<div class="list_boxBottom"></div>
<script type="text/javascript">
    function GetPageData() {
        jQuery.ajax({
            type: "POST",
            async: "false",
            url: location.href,
            dataType: "json",
            data: ({ 'FUNCTION': 'FunctionName', 'param0': '1' }),
            success: function(data) {
            },
            error: function(XMLHttpRequest, textStatus, errorThrown) {
            },
            beforeSend: function(xhr) {
                xhr.setRequestHeader("X-OFFICIAL-REQUEST", "TRUE"); //Used to ID as a AJAX Request
            },
            complete: function(XMLHttpRequest, textStatus) {
            }
        });
    }
</script>